@charset "UTF-8";
:root {
    --sidebar-width: 250px;
    --topbar-height: 60px;
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --info-color: #4895ef;
    --warning-color: #f72585;
    --danger-color: #e63946;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fb;
}

.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - var(--topbar-height));
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    overflow-y: auto;
    background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    margin: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(67, 97, 238, 0.2);
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.open-new-tab {
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.open-new-tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link .open-new-tab i {
    margin-right: 0;
    width: auto;
    font-size: 0.8rem;
}

.topbar {
    height: var(--topbar-height);
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: all 0.3s ease;
    margin-top: var(--topbar-height);
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: none;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 24px;
    font-weight: 600;
}

.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 5px 10px;
}

.table {
    box-shadow: none;
}

.table-responsive tr {
    vertical-align: middle;
}

.badge {
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.page-heading {
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    color: white;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.stat-card .card-body {
    position: relative;
    z-index: 1;
}

.action-buttons .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* 添加文章筛选按钮样式 */
.w2 {
    width: 140px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        overflow: hidden;
    }
    
    .sidebar .nav-link span {
        display: none;
    }
    
    .sidebar .nav-link i {
        margin-right: 0;
        font-size: 1.2rem;
    }
    
    .main-content {
        margin-left: 70px;
    }
}